import request from '@/utils/request';
import { getCookie } from '@/utils/authority';

export async function queryRule(params) {
  return request('/api/mList', {
    params,
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}
export async function removeRule(params) {
  return request('/api/delete', {
    method: 'POST',
    headers: {
      'login-token': getCookie('tks'),
    },
    data: { ...params },
  });
}
export async function getMonitorOfChartInfo() {
  return request('/api/chart/info', {
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}
